using System;
using System.Collections.Generic;
using System.Text;
using System.Data.Common;

namespace AAM.SQL
{
    public class DataReader
    {

        private DbDataReader reader;

        public DataReader(DbDataReader reader) { this.reader = reader; }

        public object this[string name]
        {
            get
            {
                object value = reader[name];
                if (value == DBNull.Value) return null;
                return value;
            }
        }

        public bool Read() { return reader.Read(); }
        public void Close() { reader.Close(); }

    }
}
